package DaoTest;

import dao.impl.OrderDaoImpl;
import dao.impl.OrderItemImpl;
import org.junit.Test;
import service.impl.OrderServiceImpl;

/**
 * @author zzzyyystart
 * @create 2022-05-10-15:33
 */
public class test1 {
    OrderDaoImpl orderDao = new OrderDaoImpl();
    OrderItemImpl orderItem = new OrderItemImpl();

    @Test
    public void test1() {
        OrderDaoImpl orderDao = new OrderDaoImpl();
        System.out.println(orderDao.queryOrdersByUserId(539));
    }

    @Test
    public void test2() {
        System.out.println(orderItem.queryOrderItemByOrderCode(1652163866294539L));
    }

    @Test
    public void test3(){
        OrderServiceImpl orderService = new OrderServiceImpl();
        System.out.println(orderService.showOrderDetail(Long.parseLong("1652434072080539")));
    }

}
